// This file contains some code pieces extracted from the project go.opentelemetry.io/collector,
// for the purpose of being compatible with opentelemetry-collector
package xtrace

// From go.opentelemetry.io/collector/internal/data/opentelemetry-proto-gen/trace/v1,
type Status_StatusCode int32

const (
	// The default status.
	Status_STATUS_CODE_UNSET Status_StatusCode = 0
	// The Span has been validated by an Application developers or Operator to have
	// completed successfully.
	Status_STATUS_CODE_OK Status_StatusCode = 1
	// The Span contains an error.
	Status_STATUS_CODE_ERROR Status_StatusCode = 2
)

// From go.opentelemetry.io/collector/translator/trace/protospan_translation.go
const TagStatusCode = "status.code"
